#import <Foundation/Foundation.h>
#import <UserNotifications/UserNotifications.h>

NS_ASSUME_NONNULL_BEGIN

@interface PushManager : NSObject

+ (instancetype)shared;

// 注册远程推送
- (void)registerRemoteNotification;

// 处理推送注册成功
- (void)handleDeviceToken:(NSData *)deviceToken;

// 处理推送注册失败
- (void)handleRegisterForRemoteNotificationsWithError:(NSError *)error;

// 发送本地推送
- (void)sendLocalNotificationWithTitle:(NSString *)title 
                              message:(NSString *)message;

@end

NS_ASSUME_NONNULL_END 
